<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script language="javascript" type="text/javascript" src="../js/login_form.js"></script>
	<link rel="stylesheet" type="text/css" media="all" href="../css/user/login-form.css" />
</head>

<html>
	<body>
		<div id="login-form">
			<s:form action="Login" namespace="/user" method="post" cssClass="niceform">
				<fieldset>
			    	<legend>用户登录</legend>
			    	<!-- Name Field -->
					<dl>
						<dt><label for="name">用户名:</label></dt>
						<dd><s:textfield name="name" id="name" size="30" maxlength="128"></s:textfield></dd>
						<!-- Show Name Field Error -->
			            <s:fielderror cssClass="error">
			            	<s:param >user.name</s:param>
			            </s:fielderror>
					</dl>
			    	<!-- Password Field -->
					<dl>
			        	<dt><label for="password">密码:</label></dt>
			            <dd><s:password name="password" id="password" size="30" maxlength="32"></s:password></dd>
			            <!-- Show Password Field Error -->
      			        <s:fielderror cssClass="error">
			            	<s:param >user.password</s:param>
			            </s:fielderror>
			        </dl>
			        <dl>
			        	<dt><label for="password"></label></dt>
			            <dd><s:checkbox theme="xhtml" label="下次自动登录" name="rememberMe"/></dd>
			        </dl>
			    </fieldset>
			    <!-- Submit Button -->
			    <fieldset class="action">
			    	<input type="submit" name="submit" id="submit" value="登录"/>
			    </fieldset>
			</s:form>
		</div>
	</body>
</html>
